package cn.ren.controller;

import cn.ren.entity.PageResult;
import cn.ren.entity.QueryPageBean;
import cn.ren.entity.Result;
import cn.ren.service.AssessmentService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/assessment")
public class DJ_AssessmentController {

    @Reference
    private AssessmentService assessmentService;

    @RequestMapping("/findPage")
    public PageResult dj_findPage(@RequestBody QueryPageBean queryPageBean ){
        Integer currentPage = queryPageBean.getCurrentPage();
        Integer pageSize = queryPageBean.getPageSize();
        String queryString = queryPageBean.getQueryString();
        return assessmentService.dj_findPage(currentPage,pageSize,queryString);
    }
}
